import { FC, Suspense } from 'react';

import { LoadingSpin } from '@/components';

export default function lazyLoad(Comp: FC) {
  return (
    <Suspense fallback={<LoadingSpin />}>
      <Comp />
    </Suspense>
  );
}
